﻿using RayDen.Library.Core.Primitives;
using RayDen.Library.Entity.Scene;

namespace RayDen.Library.Entity.SceneGraph {
    public class CameraNode : SceneGraphElement {
        protected CameraInfo camera;
        public CameraNode(Transform o2w, Transform w2o, CameraInfo camera) : base(o2w, w2o) {
            this.camera = camera;
        }

        public override object GetDataItem() {
            return camera;
        }

        protected override SceneGraphElement CloneInternal() {
            return new CameraNode(this.ObjectToWorld, this.WorldToObject, this.camera){Id=Id};
        }
    }
}